package com.binarysoft.service.id;

import java.util.Collection;

import common.framework.dsb.DynamicService;

/**
 * 提供整个系统的ID服务
 * 
 * @author David
 * 
 */
public interface IDService extends DynamicService {
	/**
	 * 获取一个全局唯一ID
	 * 
	 * @return
	 */
	long nextID() throws Exception;

	/**
	 * Get cache IDs to be used.
	 * 
	 * @return cache IDs.
	 * @throws Exception
	 */
	Collection<Long> getCacheIDs() throws Exception;
}
